#!/bin/bash
###
# @Author: Logan.Li
# @Gitee: https://gitee.com/attacker
# @email: admin@attacker.club
# @Date: 2025-09-06 11:43:23
 # @LastEditTime: 2025-10-25 17:19:53
# @Description: 
# wget https://gitee.com/attacker/All-In-One-Ops/raw/master/2.docker/docker-kuboard.sh
# bash docker-kuboard.sh
###

current_ip=$(hostname -I | awk '{print $1}')
echo "Kuboard IP: $current_ip"
sudo docker run -d \
--restart=unless-stopped \
--name=kuboard \
-p 82:80/tcp \
-p 10081:10081/tcp \
-e KUBOARD_ENDPOINT="http://$current_ip:82" \
-e KUBOARD_AGENT_SERVER_TCP_PORT="10081" \
-v /data/docker/kuboard-data:/data \
swr.cn-east-2.myhuaweicloud.com/kuboard/kuboard:v3.5.2.6